home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / sleep.man < prev    next >
Encoding:
Text File  |  1989-04-07  |  1.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SLEEP                 C Library Procedures                  SLEEP
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      sleep - suspend execution for interval
  10.  
  11. SSYYNNOOPPSSIISS
  12.      sslleeeepp((sseeccoonnddss))
  13.      uunnssiiggnneedd sseeccoonnddss;;
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      The current process is suspended from execution for the
  17.      number of seconds specified by the argument.  The actual
  18.      suspension time may be up to 1 second less than that
  19.      requested, because scheduled wakeups occur at fixed 1-second
  20.      intervals, and an arbitrary amount longer because of other
  21.      activity in the system.
  22.  
  23.      The routine is implemented by setting an interval timer and
  24.      pausing until it occurs.  The previous state of this timer
  25.      is saved and restored.  If the sleep time exceeds the time
  26.      to the expiration of the previous timer, the process sleeps
  27.      only until the signal would have occurred, and the signal is
  28.      sent 1 second later.
  29.  
  30. SSEEEE AALLSSOO
  31.      setitimer(2), sigpause(2), usleep(3)
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 12, 1986                          1
  64.  
  65.  
  66.  
  67.